Beagle is structured into different subprojects (see the file overview). This guide details how to create a new project.
src/$part/$language
where $part
is the part of the subproject the files belong to (must be main
if they belong to the project’s main part) and $language
is the language the source files are written in.buildSrc
buildScr/tasks/gradle
. Each build aspect belongs into its own file. Task files are named $i $aspect.gradle
where $i
is a two digit number to sort the files and $aspect
should explain what kind of tasks are found in the file. Tasks will automatically be imported to the project’s build logic.buildSrc/src/main/java
or buildScr/src/main/groovy
, respectively. It will automatically be made available to the build task scripts. If the classes have dependencies, a file called dependencies.gradle
is to be created, declaring these dependencies using the gradle DSL and adding them to the compile
configuration.Java projects must be set up in Eclipse as follows:
config/Code Templates.xml
must be used.config/Formatter.xml
must be used.config/Clean Up.xml
must be used.config/Beagle.importorder
must be used.config/checkstyle/Checkstyle.xml
, must be added and used.All points stated in this document apply to prototypes as well, with the following exceptions:
Prototypes
subfolder.config/checkstyle/Checkstyle Prototype.xml
.The MANIFEST.MF
of Eclipse plugins belongs to src/main/resources/META-INF/MANIFEST.MF
. To point PDE to it, a new file containing the line
BUNDLE_ROOT_PATH=src/main/resources
must be created in .settings/org.eclipse.pde.core.prefs
.plugin.xml
belongs to src/main/resources/plugin.xml
.build.properties
belongs to src/main/resources/build.properties
. Its paths must be adapted accordingly, a default is:
source.. = ../java/
output.. = ../../../bin/
bin.includes = META-INF/